package com.ruoyi.ybUpload.service.tableCode.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ybUpload.mapper.BusinessRecordsMapper;
import com.ruoyi.ybUpload.domain.tableCode.BusinessRecords;
import com.ruoyi.ybUpload.service.tableCode.IBusinessRecordsService;

/**
 * 请求记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-22
 */
@Service
public class BusinessRecordsServiceImpl implements IBusinessRecordsService
{
    @Autowired
    private BusinessRecordsMapper businessRecordsMapper;

    /**
     * 查询请求记录
     *
     * @param id 请求记录主键
     * @return 请求记录
     */
    @Override
    public BusinessRecords selectBusinessRecordsById(Long id)
    {
        return businessRecordsMapper.selectBusinessRecordsById(id);
    }

    /**
     * 查询请求记录列表
     *
     * @param businessRecords 请求记录
     * @return 请求记录
     */
    @Override
    public List<BusinessRecords> selectBusinessRecordsList(BusinessRecords businessRecords)
    {
        return businessRecordsMapper.selectBusinessRecordsList(businessRecords);
    }

    /**
     * 新增请求记录
     *
     * @param businessRecords 请求记录
     * @return 结果
     */
    @Override
    public int insertBusinessRecords(BusinessRecords businessRecords)
    {
        return businessRecordsMapper.insertBusinessRecords(businessRecords);
    }

    /**
     * 修改请求记录
     *
     * @param businessRecords 请求记录
     * @return 结果
     */
    @Override
    public int updateBusinessRecords(BusinessRecords businessRecords)
    {
        return businessRecordsMapper.updateBusinessRecords(businessRecords);
    }

    /**
     * 批量删除请求记录
     *
     * @param ids 需要删除的请求记录主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRecordsByIds(Long[] ids)
    {
        return businessRecordsMapper.deleteBusinessRecordsByIds(ids);
    }

    /**
     * 删除请求记录信息
     *
     * @param id 请求记录主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRecordsById(Long id)
    {
        return businessRecordsMapper.deleteBusinessRecordsById(id);
    }
}